<template>
  <div class="grid_item" v-if="show">
    <div class="grid_item_label">{{label}}：</div>
    <div class="grid_item_txt">{{txt}}</div>
  </div>
</template>

<script>
export default {
  props: {
    label: {
      type: String,
      default: ''
    },
    txt: {
      type: String,
      default: ''
    },
    show: {
      type: Boolean,
      default: true
    }
  }
}
</script>

<style lang="scss" scoped>
.grid_item {
  width: 25%;
  min-width: 300px;
  float: left;
  margin: 2px 0;
  .grid_item_label {
    line-height: 30px;
    min-width: 80px;
    float: left;
    padding-left: 10px;
    background-color: #e5e9f2;
    border-radius: 3px;
  }
  .grid_item_txt {
    // float: left;

    margin-left: 90px;
    margin-top: 7px;
  }
}
</style>
